<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>文章类型</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/typeadd.css}">
</head>

<body class="bg-light">
<div class="container mt-5">
    <h1 class="text-center mb-4">文章类型列表</h1>
    <hr class="my-4">
    <h2 class="text-center mb-4">保存文章类型</h2>

    <form action="#" th:action="@{/articletype/save}" th:object="${articletype}" method="POST" class="d-flex justify-content-center align-items-center flex-column">
        <input type="hidden" name="id" th:if="${articletype!=null}" th:value="*{id}"/>
        <div class="mb-3">

            <input type="text" id="type" th:field="*{type}" placeholder="输入文章类型" class="form-control col-0">
        </div>
        <button type="submit" class="btn btn-info col-2">保存</button>
    </form>

    <hr class="my-4">
    <div class="text-center">
        <a th:href="@{/articletype/findAll}" class="btn btn-secondary">返回文章类型列表</a>
    </div>
</div>
<footer class="footer mt-4">
    <div class="container text-center py-3">
        <p>&copy; 2024 MYBLOG. All rights reserved.</p>
    </div>
</footer>

</body>

</html>